package com.exam.operation.系统;

import java.util.List;

import com.exam.dao.DaoManager;
import com.exam.dao.HospitalDao;
import com.exam.entity.Hospital;
import com.exam.operation.Operation;

public class 列医院地址 implements Operation
{
	private boolean flag;
	private List<Hospital> hospitals;
	
	public void execute() throws Exception
	{
		HospitalDao dao = DaoManager.getInstance().getDao(HospitalDao.class);
		hospitals = dao.listHospital(flag);
	}

	public boolean getFlag()
	{
		return flag;
	}

	public void setFlag(boolean flag)
	{
		this.flag = flag;
	}

	public List<Hospital> getHospitals()
	{
		return hospitals;
	}

	public void setHospitals(List<Hospital> hospitals)
	{
		this.hospitals = hospitals;
	}
}
